import Vue from 'vue'
import App from './App'
import store from './store'
import uView from 'uview-ui';
import './util/filters.js'
Vue.use(uView);

Vue.prototype.$phoneReg = /^1[3456789]\d{9}$/
Vue.prototype.$passwordReg = /((?=.*\d)(?=.*\D)|(?=.*[a-zA-Z])(?=.*[^a-zA-Z]))(?!^.*[\u4E00-\u9FA5].*$)^\S{6,16}$/
Vue.prototype.$twoTypeReg = /((?=.*\d)(?=.*\D)|(?=.*[a-zA-Z])(?=.*[^a-zA-Z]))(?!^.*[\u4E00-\u9FA5].*$)/
Vue.prototype.$store = store
Vue.prototype.handleBackPrevious = () => {
	uni.navigateBack()
}
Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	...App,
	store
})
app.$mount()
